package edu.biwu.controller.json;

import edu.biwu.vo.Form;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/form")
public class FormController {

    /**
     * Form 复杂包装参数绑定
     * @param form
     * @return
     */
    @RequestMapping("/submitForm.do")
    public Form submitForm(@RequestBody Form form) {
        System.out.println(form);
        return form;
    }
}
